import io.netty.channel.DefaultEventLoopGroup;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoop;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.util.NettyRuntime;
import io.netty.util.internal.SystemPropertyUtil;
import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ganbo
 * @date 2022/11/27 12:39
 */
public class T {

    public static void main(String[] args) {
        int anInt = SystemPropertyUtil.getInt(
                "io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2);

        System.out.println("==========>" + anInt);

        System.out.println("NettyRuntime.availableProcessors() * 2=====>" + NettyRuntime.availableProcessors() * 2);


        NioEventLoopGroup nioEventLoop = new NioEventLoopGroup();
        nioEventLoop.next().execute(new Runnable() {
            @Override
            public void run() {
                System.out.println("Hello World...");
            }
        });

        EventLoopGroup group = new DefaultEventLoopGroup();


    }


    @Test
    public void t1() {
        Map<String, String> map = new HashMap<>();
        map.put("11", "ttt");
        System.out.println(map);
        map.clear();
        System.out.println(map);
    }
}
